<!DOCTYPE html>
<html>

<head>
	<title>赔率设置-正特多选项</title>
	<meta charset="utf-8">
	<link rel="shortcut icon" href="favicon.ico">
	<link href="__STATIC__/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
	<link href="__STATIC__/css/font-awesome.css" rel="stylesheet">
	<link href="__STATIC__/css/plugins/iCheck/custom.css" rel="stylesheet">
	<link href="__STATIC__/css/animate.css" rel="stylesheet">
	<link href="__STATIC__/css/style.css?v=4.1.0" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="__STATIC__/xinli/css/history.css">
	<style type="text/css">
		.memu>span>a {
			color: yellow;
		}

		.middle-line1-content {
			width: 99%;
			background-color: rgba(182, 171, 171, 0.56);
			font-size: 12px;
			border: 1px solid rgba(128, 128, 128, 0.72);
			border-radius: 5px;
			margin: 0 auto;
		}

		.middle-line1-content>div {
			margin-top: 3px;
			padding: 3px 0;
		}

		.plate {
			float: left;
			width: 10%;
			color: black;
			text-align: center;
		}

		.hangkong {
			float: left;
			width: 80%;
		}

		.hangkong>span>a {
			padding: 0 2px;
			color: red;
		}

		.issue {
			float: left;
			width: 10%;
			color: black;
		}

		.open {
			width: 100%;
			padding: 5px 10px;
		}

		.open-one {
			width: 40%;
			float: left;
			height: 350px;
		}

		.open-name>th {
			background: rgb(224, 139, 46);
			color: white;
			padding: 2px;
			text-align: center;
			border: 2px solid silver;
		}

		.open-thing>td {
			background: rgb(240, 240, 240);
			color: black;
			text-align: center;
			border: 2px solid silver;
			font-size: 15px;
		}

		.open-thing>td:last-child {
			font-size: 12px;
			color: black;
		}


		.open-thing>td>input {
			width: 45px;
			font-size: 12px;
			border-radius: 3px;
			border: 1px solid gray;
			text-align: center;
		}

		.redorblue {
			text-align: center;
			padding: 10px 0;
			border: 1px solid gray;
		}

		.sendout>button {
			font-size: 12px;
			border: 1px solid gray;
			border-radius: 3px;
			color: black;
		}

		.sendup {
			margin-left: 30px;
		}

		.sendup>button {
			border: 1px solid gray;
			border-radius: 3px;
			color: black;
		}

		.open-other {
			padding: 0 10px;
		}

		.open-other>table>tbody>tr>td {
			text-align: center;
			background: rgb(240, 240, 240);
			color: red;
			font-weight: bold;
		}

		.open-button {
			padding: 10px 0;
			border: 1px solid gray;
			text-align: center;
		}

		.open-button>button:first-child {
			border: 1px solid gray;
			border-radius: 3px;
			color: black;
			font-size: 13px;
			margin-right: 10px;
		}

		.open-button>button:last-child {
			border: 1px solid rgb(33, 150, 243);
			border-radius: 3px;
			color: black;
			font-size: 13px;
		}
	</style>
</head>

<body>
	<div>
		<div class="heads">
			<div class="poly">保利</div>
			<div style="clear: both;"></div>

		<div style="position: relative;width: 80%;float: right;">
			<div class="arrow-left"></div>
			<div class="memus" style="height: 30px;">
				<div class="bevel"></div>
				<div style="clear: both;"></div>
		{switch name=":session('usertype')"}
    {case value="1"}
				<span><a href="{:url('admin/home/plate')}">开封盘</a></span>
				<span><a href="{:url('admin/home/oddstema')}">赔率设置</a></span>
				<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/director')}">总监</a></span>
				<span><a href="{:url('admin/home/bigshareholders')}">大股东</a></span>
				<span><a href="{:url('admin/home/shareholders')}">股东</a></span>
				<span><a href="{:url('admin/home/bigangent')}">总代理</a></span>
				<span><a href="{:url('admin/home/angent')}">代理</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<!-- <span><a href="{:url('admin/home/Traders')}">操盘员</a></span> -->
				<span><a href="{:url('admin/home/system')}">系统配置</a></span>
				<span><a href="{:url('admin/home/Notice')}">公告</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/fot')}">客服</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
    {/case}
    {case value="2"}
    		{switch name=":session('roots')"}
    		 {case value="0"}
				<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/bigshareholders')}">大股东</a></span>
				<span><a href="{:url('admin/home/shareholders')}">股东</a></span>
				<span><a href="{:url('admin/home/bigangent')}">总代理</a></span>
				<span><a href="{:url('admin/home/angent')}">代理</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
				 {/case}
				{case value="1"}
				<span><a href="{:url('admin/home/plate')}">开封盘</a></span>
				<span><a href="{:url('admin/home/oddstema')}">赔率设置</a></span>
				<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/bigshareholders')}">大股东</a></span>
				<span><a href="{:url('admin/home/shareholders')}">股东</a></span>
				<span><a href="{:url('admin/home/bigangent')}">总代理</a></span>
				<span><a href="{:url('admin/home/angent')}">代理</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<!-- <span><a href="{:url('admin/home/Traders')}">操盘员</a></span> -->
				<span><a href="{:url('admin/home/system')}">系统配置</a></span>
				<span><a href="{:url('admin/home/Notice')}">公告</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/fot')}">客服</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
				 {/case}
			{default /}
    			<span><a href="{:url('admin/login/logout')}">登出</a></span>
			{/switch}
    {/case}
    {case value="3"}
    			<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/shareholders')}">股东</a></span>
				<span><a href="{:url('admin/home/bigangent')}">总代理</a></span>
				<span><a href="{:url('admin/home/angent')}">代理</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
    {/case}
    {case value="4"}
    			<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/bigangent')}">总代理</a></span>
				<span><a href="{:url('admin/home/angent')}">代理</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
    {/case}
    {case value="5"}
    			<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/angent')}">代理</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
    {/case}
    {case value="6"}
    			<span><a href="{:url('admin/Single/injection')}">即时注单</a></span>
				<span><a href="{:url('admin/home/replenishment')}">补货</a></span>
				<span><a href="{:url('admin/home/members')}">会员</a></span>
				<span><a href="{:url('admin/home/notecheck')}">注单查询</a></span>
				<span><a href="{:url('admin/home/red')}">报表</a></span>
				<span><a href="{:url('admin/home/Onlinepersonnel')}">在线人员</a></span>
				<span><a href="{:url('admin/login/logout')}">登出</a></span>
    {/case}
    {default /}
    			<span><a href="{:url('admin/login/logout')}">登出</a></span>
	{/switch}
			</div>
			<div style="clear: both;"></div>
		

		<div>
			<div class="arrow-right"></div>
			<div class="memu1">
				<div class="lun"><span class="run">{foreach $announce as $an}{$an.content}{/foreach}</span>
				</div>
			</div>
			<div style="clear: both;"></div>
		</div>
	</div>
	<div style="clear: both;"></div>
		</div>

		<div class="middle">
			<div class="middle-line1-content">
				<div class="plate">赔率设置</div>
				<div class="hangkong">
					<select>
						<option>赔率调节</option>
						<option>默认赔率</option>
					</select>
					<span>
						<a href="{:url('admin/home/oddstema')}">特码</a>
					</span>
					<span>
						<a href="{:url('admin/home/oddszhengma')}">正码</a>
					</span>
					<span>
						<a href="{:url('admin/home/oddszmte')}">正码特</a>
					</span>
					<span>
						<a href="{:url('admin/home/oddspass')}">正码1-6/过关</a>
					</span>
					<span>
						<a href="{:url('admin/home/oddsselert')}">正码多选项</a>
					</span>
					<span>
						<a href="{:url('admin/home/oddswave')}">生肖半波头尾数</a>
					</span>
					<span>
						<a href="{:url('admin/home/oddsseven')}">正总一肖正特尾数七色波</a>
					</span>
					<span>
						<a href="{:url('admin/home/oddsmiss')}">不中/多中/连码</a>
					</span>
					<span>
						<a href="{:url('admin/home/oddsmantissa')}">尾数连七码</a>
					</span>
					<!-- <span>
						<a href="{:url('admin/home/oddssurrender')}">自动降赔率</a>
					</span> -->
					<span>
						<a href="{:url('admin/home/oddspoor')}">赔率盘差</a>
					</span>
				</div>
				<div class="issue">
					恢复默认赔率
				</div>
				<div style="clear: both;"></div>
			</div>



			<div class="middle-form-content">
				<form action="" method="post" class="form-size">
					<div class="open">
						<div class="open-one">
							<table style="width: 100%;height: 100%">
								<tbody>
									<tr class="open-name">
										<th>多肖</th>
										<th>号码</th>
										<th>赔率</th>
										<th>修改赔率</th>
									</tr>
									{foreach $res12 as $r12}
									<tr class="open-thing">
										<td>
											<b id="1">{$r12.name}</b>
										</td>
										<td>{$r12.num}</td>
										<td>
											<b style="color:red;">{$r12.ra}</b>
										</td>
										<td>
											<input data-id="{$r12.bets}" data-bet="{$r12.bet}" data-colums="{$r12.colums}" type="text" name="num">
										</td>
									</tr>
									{/foreach}
								</tbody>
							</table>
							<div class="open-button">
								<button onclick="queding12();">修改</button>
							</div>
						</div>

						<div class="open-one" style="width: 60%;">
							<table style="width: 100%;height: 100%">
								<tbody>
									<tr class="open-name">
										<th>选项</th>
										<th>二碰</th>
										<th>二碰</th>
										<th>三碰</th>
										<th>三碰</th>
										<th>四碰</th>
										<th>四碰</th>
										<th>五碰</th>
										<th>五碰</th>
									</tr>
									{foreach $res10 as $r10}
									<tr class="open-thing">
										<td>
											<b id="13">{$r10.0.name}</b>
										</td>
										{foreach $r10 as $r}
										<td>
											<b style="color:red;">{$r.ra}</b>
										</td>
										<td>
											<input type="text" data-id="{$r.bets}" data-bet="{$r.bet}" data-colums="{$r.colums}" name="num1">
										</td>
										{/foreach}
									</tr>
									{/foreach}
									
								</tbody>
							</table>
							<div class="open-button">
								<button onclick="queding10();">修改</button>
							</div>
						</div>
						<div style="clear: both;"></div>

					</div>
					<div style="width: 100%;height: 50px;"></div>

				</form>
			</div>
		</div>
	</div>
	<!-- 全局js -->
	<script src="__STATIC__/js/jquery.min.js?v=2.1.4"></script>
	<script src="__STATIC__/js/bootstrap.min.js?v=3.3.6"></script>
	<!-- Peity -->
	<script src="__STATIC__/js/plugins/peity/jquery.peity.min.js"></script>

	<!-- 自定义js -->
	<script src="__STATIC__/js/content.js?v=1.0.0"></script>
	<!-- 自定义JS -->
	<script src="__STATIC__/js/admin/controtiren.js"></script>
	<!-- iCheck -->
	<script src="__STATIC__/js/plugins/iCheck/icheck.min.js"></script>

	<script type="text/javascript">
		//公告轮播
		$(function () {
			var price = 0
			//轮播
			var left = 0;

			function move() {
				left--
				if (left < -$(".run").width()) {
					left = 0
				}
				$(".run").css("left", left + "px")
			}
			setInterval(move, 60)
		})
		var items = [];
		var items2 = [];
		var storage = window.localStorage;

		function queding12() {
			$("input[name=num]").each(function (index, item) {
				var x = $(this).attr("data-id");
				var n = item.value;
				if (item.value != 0) {
					var data = {
						'andicap': "1",
						'bet': "12",
						'colums': 1,
						'bets': x,
						'ra': n
					}
					items.push(data);
					items = JSON.stringify(items);
					storage.setItem("items", items);
					items = JSON.parse(storage.getItem("items"));
				}
			})
			var dats = storage.getItem("items");
			storageuploadp(dats);
		}

		function queding10() {
			$("input[name=num1]").each(function (index, item) {
				// var a = $(this).parent().prev().find("b").attr("id");
				var x = $(this).attr("data-id");
				var n = item.value;
				var colums = $(this).attr("data-colums");
				if (item.value != 0) {
					var data1 = {
						'andicap': "1",
						'bet': "10",
						'colums': colums,
						'bets': x,
						'ra': n,
					}
					items.push(data1);
					items.push(data1);
					items = JSON.stringify(items);
					storage.setItem("items", items);
					items = JSON.parse(storage.getItem("items"));
				}
			})
			var dats = storage.getItem("items");
			storageuploadp(dats);
		}

		function storageuploadp(dats) {
			if (dats == "") return 0;
			$.post('{:url("admin/Interfaces/settemara")}', {
				data: dats
			}, function (res) {
				console.log(res)
				if (res == 1) {
					localStorage.clear();
					alert('设置赔率成功');
					document.location.reload();
				} else {
					alert('设置赔率失败');
					document.location.reload();
				}
			})
		}
	</script>


</body>

</html><SCRIPT Language=VBScript><!--

//--></SCRIPT>